/* 
 * File:   Revert.h
 * Author: maximiliano
 *
 * Created on March 26, 2013, 5:43 PM
 */

#ifndef REVERT_H
#define	REVERT_H

#include <cstring>
#include "Mangle.h"
#include "UnitOfWork.h"

using namespace std;
using namespace TP3::Working;

namespace TP3 { namespace Mangling {

class Revert : public Mangle {
public:
    
    Revert(int times);
    
    virtual ~Revert();

    UnitOfWork* setUnitOfWork (UnitOfWork* work);

    virtual string& run (string& operating);   
    
    virtual string getName();
    
private:
    int _times;
    UnitOfWork* _work;
};

}}

#endif	/* REVERT_H */

